import Ax from './api';

export default {
  protocolAdd: (param = {}) => Ax.put(`/protocol/add`, param),
  protocolClone: (param = {}) => Ax.put(`/protocol/clone`, param),
  protocolEdit: (param = {}) => Ax.put(`/protocol/edit`, param),
  protocolDelete: (query = {}) => Ax.delete(`/protocol/delete?_id=${query._id}`),
  protocolList: (param = {}) => Ax.post(`/protocol/list`, param),
  protocolAll: (param = {}) => Ax.post(`/protocol/all`, param),
  protocolDetail: (query = {}) => Ax.get(`/protocol/detail?_id=${query._id}`),
  protocolUploadDelete: (param) => Ax.delete(`/protocol/file/delete?fileName=${param.fileName}&protocolId=${param.protocolId}`),
  protocolFilesList: (query) => Ax.get(`/protocol/file/list?_id=${query._id}`),
  protocolCommandDetail: (query = {}) => Ax.get(`/protocol/command/detail?_id=${query._id}`),

};
